#include "ly/pcell.hpp"
namespace ly {
bool PCellParametersCompareFunc::operator()(const pcell_parameters_type* a, const pcell_parameters_type* b) const {
  if (a->size() != b->size()) {
    return a->size() < b->size();
  }

  for (size_t i = 0; i < a->size(); ++i) {
    if ((*a)[i] < (*b)[i]) {
      return true;
    } else if ((*b)[i] < (*a)[i]) {
      return false;
    }
  }

  return false;
}

}  // namespace ly
